//引入pinia
import { defineStore } from 'pinia'

/* interface UserRow {
    username:string,
    password:number
} */


const useMainStore = defineStore('main', {
    state: () => {
        return {
            Userinfo: {}
        }
    },
    getters: {

    },
    actions: {
        userToken() {
            var userinfo = JSON.parse(String(localStorage.getItem('userInfo')))
            this.Userinfo = userinfo
            // console.log(this.UserData);
        }
    }
})
export { useMainStore }